package kr.hkit.PowerJava.chapter05.work;

import java.util.Scanner;

public class Metropolis {
     public static void main(String[] args) {
		boolean isCapital;
		int citizens;
		int riches;
	
	Scanner sc = new Scanner(System.in);
	System.out.print("수도입니까?(수도: 1 수도아님: 0)");
	isCapital = (sc.nextInt() == 1) ? true : false;
	System.out.print("인구(단위: 만)");
	citizens = sc.nextInt();
	System.out.print("부자의 수(단위: 만)");
	riches = sc.nextInt();
	boolean isMetro = (isCapital && citizens >=100)
			||(riches>=50);
	
	System.out.println("메트로폴리스 여부: " + isMetro);
   }
}
